<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
<link href="../css/dtree.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../scripts/dtreeAuth.js"></script>
<style type="text/css">
   .art_ul {overflow: hidden;}
   .art_ul li{padding:2px;margin:2px;display:block;overflow: hidden;border:1px solid #666;float:left;width:130px;border:1px solid #666}
   .art_ul li img{width:120px;height:88px;}
   .art_ul div{padding:2px;}
   .content_main table td {text-align: left;}
</style>

</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">修改密码</div>
    <div class="main_soso">
    	
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="100%" style="border-left:none;text-align: left;font-weight: normal;">修改密码信息 </th>
        </tr>
      </table>
    </div>
  </div>
  <div class="content_main">
    <form action="/channel/updatePwd.shtml" name="form01" method="post">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="background_hegh01">
     
      <tr>
        <td width="15%" style="border-left:none" align="right">用户名：</td>
        <td width="">${session_user.userName}</td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">原密码：</td>
        <td width="">
        <input name="oldPassword" type="password" value="" style="width:240px;" class="inputwidth01" id="oldPassword" maxlength="30" /><span style="color:red;"><s:fielderror><s:param>error</s:param></s:fielderror></span>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">新密码：</td>
        <td width="">
        <input name="password" type="password" id="password" value="" style="width:240px;" class="inputwidth01" maxlength="30" />
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">密码确认：</td>
        <td width="">
        <input name="rpassword" id="rpassword" type="password" value="" style="width:240px;" class="inputwidth01" maxlength="30" />
        </td>
      </tr>
    </table>
    </form>
  </div>
  <div class="lapel" style="background:#FFFFFF;"><span><input name="" type="button" class="input01" value="保存" onclick="validate.submit();"/>&nbsp;
  </span></div>
</div>
</body>
</html>
<script type="text/javascript" src="/scripts/util.js"></script>
<script type="text/javascript" src="/scripts/form_validate.js"></script>
<script type="text/javascript">
validate.addvalidte(document.form01,{
        rules:{
	       oldPassword:{checkNull:true},
           password:{checkNull:true,minlength:6,maxlength:20},
           rpassword:{checkNull:true,minlength:6,maxlength:20,equals:"password"}
           },
	    message:{
           oldPassword:{checkNull:"请输入原密码"},
	       password:{checkNull:"请输入密码!",minlength:"请输入6位数以上的密码!",maxlength:"最大输入20位数的密码"},
	       rpassword:{checkNull:"请输入确认密码!",minlength:"请输入6位数以上的确认密码!",maxlength:"最大输入20位数的密码",equals:"两次密码不一致!"}
	    }
	    });

</script>